From 6e179afd3d9bba8fb05fbe7171eb23ac9e870fe1 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 26 Feb 2025 10:46:48 +0800 Subject: [PATCH] gui/macOS: Use attached tooltip properties rather than creating a new tooltip in request sync button Signed-off-by: Claudio Cambra --- src/gui/macOS/ui/FileProviderSyncStatus.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/macOS/ui/FileProviderSyncStatus.qml b/src/gui/macOS/ui/FileProviderSyncStatus.qml index 60b138512..cd6376679 100644 --- a/src/gui/macOS/ui/FileProviderSyncStatus.qml +++ b/src/gui/macOS/ui/FileProviderSyncStatus.qml @@ -73,9 +73,8 @@ GridLayout { hoverEnabled: true onClicked: root.controller.signalFileProviderDomain(root.accountUserIdAtHost) - ToolTip { - visible: requestSyncButton.hovered - text: qsTr("Request a sync of changes for the VFS environment. macOS may ignore or delay this request.") - } + ToolTip.visible: hovered + ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval + ToolTip.text: qsTr("Request a sync of changes for the VFS environment.\nmacOS may ignore or delay this request.") } } \ No newline at end of file -- 2.30.2